package com.example.moments.ssmemo.entity;

import java.util.ArrayList;
import java.util.List;

public class LikeData {
    String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    public static LikeData toMe(Like like) {
        LikeData likeData=new LikeData();
        likeData.setUsername(like.getUsername());
//        likeData.setUsername();
        return likeData;
//        return new CommentData(comment.getUsername(), comment.getContent(), comment.getReplyUsername());
//     return   new CommentData(comment.getUsername(),comment.getContent(),comment.getReplyUsername());
//        comment.getId()
    }


    public static List<LikeData> toMe(List<Like> likes) {
        List<LikeData> list = new ArrayList<>();
        for (Like like : likes) {
            list.add(toMe(like));
//            list.add(parseFromDb(comment));
        }
        return list;
//        return   new  CommentData(comment.getUsername(),comment.getContent(),comment.getReplyUsername());
//     return   new CommentData(comment.getUsername(),comment.getContent(),comment.getReplyUsername());
//        comment.getId()
    }

}
